//
//  DatabaseManager.h
//  数据库
//
//  Created by dllo on 15/10/8.
//  Copyright © 2015年 LuckyHan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Record.h"

@interface DatabaseManager : NSObject
+ (void)openDatabase;
+ (void)closeDatabase;
+ (void)createTable;
+ (void)insertRecord:(Record *)record;
+ (void)deleteRecord:(NSString *)contentId;
+ (void)updateRecord:(Record *)record
           ContentId:(NSString *)contentId;
+ (NSMutableArray *)selectRecords;
//模糊查询
+ (NSMutableArray *)selectRecordsBySearchText:(NSString *)searchText;
@end
